package com.hzw.saas.service.hpc.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hzw.saas.service.hpc.model.HpcContract;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @Description
 * @Date 2021/7/15 5:58 下午
 * @Created by sonam
 */
@Mapper
public interface HpcContractMapper extends BaseMapper<HpcContract> {

    /**
     * 根据客户条件检索出 合同对应的userId
     *
     * @param page
     * @param levelIds
     * @param fuzzyString
     * @param contractStatus
     * @param registerSort
     * @param createId
     * @param providerCodes
     * @param date
     * @return
     */
    IPage<String> listContractUserIdByCondition(Page page, @Param("levelIds") List<String> levelIds,
                                                @Param("fuzzy") String fuzzyString, @Param("status")Integer contractStatus,
                                                @Param("registerSort") Integer registerSort, @Param("type") Integer type,
                                                @Param("createId") String createId,
                                                @Param("providerCodes") List<String> providerCodes,
                                                @Param("now") Date date);

}
